package com.ruoyi.test.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品管理业务对象
 *
 * @author wpq
 * @date 2024-04-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HnProductBo extends BaseEntity {

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 商品描述
     */
    @NotBlank(message = "商品描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 商品价格
     */
    @NotBlank(message = "商品价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String price;

    /**
     * 商品库存数量
     */
    @NotNull(message = "商品库存数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quantity;

    /**
     * 商品类别
     */
    @NotBlank(message = "商品类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;


}
